package org.example.feign;

import org.example.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-service")
public interface UserFeignClient {
    @GetMapping("/elm-api/user/getUserByIdByPass")
    User getUserByIdByPass(@RequestParam("userId") String userId, @RequestParam("password") String password);

    @GetMapping("/elm-api/user/getUserById")
    int getUserById(@RequestParam("userId") String userId);
}